<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
//首页
require ('conn.php');//包含连接文件
$sql="select * from notes ";//查询数据
$rs=$db->query($sql);//执行语句    $rs是一个结果集
$rows=$rs->fetch_all(MYSQLI_BOTH);   //包括所有行
require 'index_html.php';
   //释放结果集
 //  $result->free();
   //关闭数据库
   $db->close();